
package com.dhcc.bpm.modules.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

import java.util.Date;

/**
 * @ClassName CostApi
 * @Description 收费规则表实体类
 * @Author daina
 * @Date 2020/2/25 15:22
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_cost_api")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "CostApi对象", description = "收费规则表")
public class CostApi extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 是否收费
	*/
		@ApiModelProperty(value = "是否收费")
		private String flagCharge;
	/**
	* 资费标准
	*/
		@ApiModelProperty(value = "资费标准")
		private String chargeStandard;
	/**
	* APIID
	*/
		@ApiModelProperty(value = "APIID")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long opcApiId;
	/**
	* 开始时间
	*/
		@ApiModelProperty(value = "开始时间")
		private Date startTime;
	/**
	* 结束时间
	*/
		@ApiModelProperty(value = "结束时间")
		private Date endTime;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;

}
